/** @format */

import { AppRegistry, NativeModules,InteractionManager,YellowBox } from 'react-native';
import App from './App';
import { name as appName } from './app.json';

GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;

AppRegistry.registerComponent(appName, () => App);

if (__DEV__) {
    // NativeModules.DevSettings.setIsDebuggingRemotely(true)
}

// For RN < 0.43
if (__DEV__) {
    // NativeModules.DevMenu.debugRemotely(true)
}

// console.ignoredYellowBox = ['Warning: BackAndroid is deprecated. Please use BackHandler instead.','source.uri should not be an empty string','Invalid props.style key'];

// console.disableYellowBox = true // 关闭全部黄色警告

// YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);


AppRegistry.registerComponent(appName, () => App);
